{include common/head}
<div class="container-scroller">
    {include common/header}
    <!-- partial -->
    <div class="container-fluid page-body-wrapper">
        {include common/sidebar}
      <!-- partial -->
      <div class="main-panel">
        <div class="content-wrapper">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                        <h4 class="card-title">系统配置</h4>
                        <form id="setup" class="forms-sample">
                            <div class="form-group">
                            <label>网站名称</label>
                            <input type="text" name="wwwname" class="form-control" value="{$config.wwwname}">
                            </div>
                            <div class="form-group">
                            <label>网站描述</label>
                            <input type="text" name="wwwinfo" class="form-control" value="{$config.wwwinfo}">
                            </div>
                            <div class="form-group">
                            <label>网站域名( <span class="text-info">请包含http://或者https://</span> )</label>
                            <input type="text" name="wwwdomain" class="form-control" value="{$config.wwwdomain}">
                            </div>
                            <div class="form-group">
                            <label>管理员QQ</label>
                                <input type="text" name="qq" class="form-control" value="{$config.qq}">
                            </div>
                            <div class="form-group">
                            <label>未授权提示</label>
                                <input type="text" name="no_msg" class="form-control" value="{$config.no_msg}">
                            </div>
                            <div class="form-group">
                            <label>锁定提示</label>
                                <input type="text" name="key_msg" class="form-control" value="{$config.key_msg}">
                            </div>
                            <div class="form-group">
                            <label>统计代码</label>
                                <textarea type="text" name="tongji" class="form-control" style="height: 150px;">{$config.tongji}</textarea>
                            </div>
                            <div class="form-check form-check-flat"> 
                                <label class="form-check-label">
                                  <input name="debug_page" type="checkbox" {if $config['debug_page']}checked="checked"{/if} class="form-check-input">
                                  右下角调试窗口
                                <i class="input-helper"></i></label>
                            </div>
                            <div class="form-check form-check-flat"> 
                                <label class="form-check-label">
                                  <input name="debug" type="checkbox" {if $config['debug']}checked="checked"{/if} class="form-check-input">
                                  开启DEBUG模式
                                <i class="input-helper"></i></label>
                            </div>
         
                            <button type="button" class="btn btn-success mr-2 mt-2" onclick="ok()">保存</button>
                        </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- content-wrapper ends -->
        <!-- partial:partials/_footer.html -->
        {include common/footer}
        <!-- partial -->
      </div>
      <!-- main-panel ends -->
    </div>
    <!-- page-body-wrapper ends -->
  </div>
  <!-- container-scroller -->
{include common/foot}